package com.lsm.sm.entity;

/**
 * UserPermission entity. @author MyEclipse Persistence Tools
 */

public class UserPermission extends Model {
	private static final long serialVersionUID = -6428550135084873135L;
	private Integer user;
	private Short isLocked;

	// Constructors

	/** default constructor */
	public UserPermission() {}


	public Integer getUser() {
		return this.user;
	}

	public void setUser(Integer user) {
		this.user = user;
	}

	public Short getIsLocked() {
		return this.isLocked;
	}

	public void setIsLocked(Short isLocked) {
		this.isLocked = isLocked;
	}

	@Override
	public int hashCode() {
		return id;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		UserPermission other = (UserPermission) obj;
		return id== other.id;
	}
}